﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SilverZebra.DataModel;

namespace SilverZebra.Data
{
    public class Repository
    {
        //GetCourses
        public static CourseCollection GetCourses()
        {
           CourseCollection Courses = new CourseCollection();
           Courses.Add(new Course()
           {
               Id = 1,
               Name = "Java",
               Start = DateTime.Now,
               End = DateTime.Now,
               Code = "java010"
           });
           Courses.Add(new Course()
           {
               Id = 2,
               Name = "C#",
               Start = DateTime.Now,
               End = DateTime.Now,
               Code = "C#09"
           });
           Courses.Add(new Course()
           {
               Id = 3,
               Name = "Belly Button Studies",
               Start = DateTime.Now,
               End = DateTime.Now,
               Code = "BellyNow"
           });
           return Courses;
        }


        // GetStudents

        //GetGroups
        public static GroupCollection GetGroups()
        {
            GroupCollection Groups = new GroupCollection();

            Course c = GetCourses()[1];

            Groups.Add(new Group()
            {
                Id = 1,
                Name = "RIA",
                StartYear = 2010,
                //          Course = c
            });

            Groups.Add(new Group()
            {
                Id = 2,
                Name = "Java Developer",
                StartYear = 2009,
                //          Course = c
            });

            return Groups;
        }
        //Men ska vi ha en get presence i nuläget?
    }
}
